const Koa = require('koa')
const app = new Koa()
const respDurationMiddleware = require('./middleware/koa_response_duration')
app.use(respDurationMiddleware)
const respHeaderMiddleware = require('./middleware/koa_response_header')
app.use(respHeaderMiddleware)
const respDataMiddleware = require('./middleware/koa_response_data')
app.use(respDataMiddleware)
app.listen(8888, () => {
  console.log('服务器开启成功!');
})

const webSocketService = require('./service/web_socket_service')
webSocketService.listen()

